#include "adds.h"
#include "ui_adds.h"

adds::adds(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::adds)
{
    ui->setupUi(this);
}

adds::~adds()
{
    delete ui;
}

void adds::on_pushButton_clicked()
{
    this->close();
}


void adds::on_calendarWidget_clicked(const QDate &date)
{
    ui->editDate->setText(date.toString("yyyy-MM-dd"));
}


void adds::on_pushButton_2_clicked()
{
    emit add(ui->spinJd->value(),ui->spinWd->value(),ui->editDate->text(),ui->spinStartHour->value(),ui->spinStartSecond->value(),ui->spinEndHour->value(),ui->spinEndSecond->value(),ui->spinJg->value());
}

